const _import = require(`@/libs/util.import.${process.env.NODE_ENV}`)
import layoutHeaderAside from '@/layout/ant-main-layout'
var routes = [
    //add routes here
    //got router from api
    {
        path: '/',
        name: 'index',
        redirect: {
            name: 'index'
        },
        component: layoutHeaderAside,
        children: [{
            path: '/index',
            name: 'index',
            component: _import("home/index"),
        },

        ]
    },
    {
        path: 'setting',
        name: 'setting',
        redirect: {
            name: 'role'
        },
        component: layoutHeaderAside,
        children: [{
            path: '/role',
            name: 'role',
            component: _import("system/role/index"),
        }, {
            path: '/member',
            name: 'member',
            component: _import("system/user/index"),
        },

        ]
    },
    {
        path: '/login',
        name: 'login',
        component: _import("system/login")
    }
]
export default [
    ...routes
]